package com.example.i18n.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class MsgVO implements Serializable {
    private static final long serialVersionUID = 3869883763128105939L;
    /**
     * 学生姓名
     */
    @NotBlank(message = "{name.notBlank}")
    @Length(min = 2,max = 19,message="{name.length}")
    private String name;

    @NotNull(message = "{age.notNull}")
    private Integer age;
}
